/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-05-13
 * Time: 17:33
 */
public class test4 {
    public int climb(int n){
        int p = 0;
        int q = 0;
        int r = 1;
        for(int i=0;i<n;i++){
            p = q;
            q = r;
            r = p+q;
        }
        return r;
    }
}
